#CACHE{0}
<?php        	
    include_spip('functions/pdk_common');
    include_spip('inc/minipres');
    $extension = pdk_load_class('AlohacartPaymentInterkassa', 'classes/payment');        
    $order_mdl = pdk_load_class('AlohacartOrderModel', 'classes');
    if ($_REQUEST && $extension->CheckHash($_REQUEST) && $_REQUEST['ik_payment_state']=='success') {
        $extension->PaymentSuccess($_REQUEST['ik_payment_id'], $_REQUEST);
        echo minipres('<:alohacart_payment_interkassa:payment_succes:>',
            '<div style="text-align:center;"><a href="#URL_SITE_SPIP"><:alohacart:go_to_main_page:></a></div>');
    } else {        
        echo minipres('<:alohacart_payment_interkassa:payment_failed:>', 
            '<div style="text-align:center;"><a href="#URL_SITE_SPIP"><:alohacart:go_to_main_page:></a></div>');
    } 
?>